﻿using System.Runtime.Serialization;

namespace FuiouPay.Models.Request {
    /// <summary>
    /// 统一下单请求报文
    /// </summary>
    public class PreCreateRequestInfo : PayRequestInfo {
        /// <summary>
        /// 必填，订单类型: 
        /// ALIPAY(统一下单、条码支付、服务窗支付)
        /// WECHAT(统一下单、条码支付、公众号支付、小程序)
        /// UNIONPAY
        /// BESTPAY(翼支付)
        /// </summary>
        [DataMember(Name = "order_type")]
        public string OrderType { get; set; }

        /// <summary>
        /// 必填，通知地址, 接收富友异步通知回调地址。
        /// </summary>
        [DataMember(Name = "notify_url")]
        public string NotifyUrl { get; set; }

        /// <summary>
        /// 子商户公众号id(后期拓展字段，请先不要填写)
        /// </summary>
        [DataMember(Name = "reserved_sub_appid")]
        public string ReservedSubAppid { get; set; }

        /// <summary>
        /// 限制支付
        /// no_credit:不能使用信用卡
        /// credit_group：不能使用花呗以及信用卡
        /// </summary>
        [DataMember(Name = "reserved_limit_pay")]
        public string ReservedLimitPay { get; set; }
    }
}
